package com.xli.mis.datasource.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xli.mis.datasource.entity.DataSource;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface IDataSourceService extends IService<DataSource> {

    boolean insert(DataSource dataSource);

    boolean delete(Long id);

    boolean update(DataSource dataSource);

    DataSource find(Long id);

    long findCount(QueryWrapper<DataSource> qw);

    List<DataSource> findList(QueryWrapper<DataSource> qw);

    Page<DataSource> findList(QueryWrapper<DataSource> qw, long current, long size);

    DataSource findByName(String name);

    boolean isExists(QueryWrapper<DataSource> qw);
}
